<extend name="Base/common" />
<block name="sidenav">
	<ul class="mod-bar" >
        <li>
			<a href="{:U('Admin/Index/index')}" class=" icon icon-home active">
			    <span>首页</span>
			</a>
        </li>
        <li>
			<a href="javascript:;" class=" icon icon-setting" data="icon">
			    <span>系统设置</span>
			</a>
			<ul class="hide">
                <li>
			        <a href="{:U('Admin/Model/lists')}">
			            <span>数据模型</span>
			        </a>
			    </li>
            </ul>
        </li>
    </ul>
</block>
<block name="main_content">
<div class="aw-content-wrap">
    <div class="mod">
	        <div class="mod-head">
	            <h3>
	                <include file="Public/nav" />
	            </h3>
	        </div>
	        <div class="mod-body tab-content">
	            <div class="tab-pane" id="list">
	                <div class="table-responsive">
	                                    <table class="table table-striped">
	                        <thead>
	                            <tr>
	                                <th width="40%">用户群名称</th>
	                                <th>用户数量</th>
	                                <th>发出数量</th>
	                                <th>阅读数</th>
	                                <th>建立时间</th>
	                                <th>操作</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                                                        <tr>
	                                <td>发送我是</td>
	                                <td>1</td>
	                                <td>1</td>
	                                <td>0</td>
	                                <td>2016-03-01 16:11</td>
	                                <td>
	                                    <a href="http://douchat.cc/?/account/edm/mail/8" target="_blank" class="icon
	                                     icon-inbox md-tip" title="" data-original-title="邮件内容"></a>
	                                    <a href="http://douchat.cc/?/admin/edm/export_active_users/8" class="icon icon-download md-tip" title="" data-original-title="导出活跃用户"></a>
	                                    <a onclick="AWS.dialog('confirm', {'message': '确认删除这个用户群?'}, function(){window.location = G_BASE_URL + '/admin/edm/remove_task/8'}); return false;" class="icon icon-trash md-tip" title="" data-original-title="删除"></a>
	                                </td>
	                            </tr>
	                                                        <tr>
	                                <td>法师法师</td>
	                                <td>1</td>
	                                <td>1</td>
	                                <td>0</td>
	                                <td>2016-03-01 16:08</td>
	                                <td>
	                                    <a href="http://douchat.cc/?/account/edm/mail/7" target="_blank" class="icon
	                                     icon-inbox md-tip" title="" data-original-title="邮件内容"></a>
	                                    <a href="http://douchat.cc/?/admin/edm/export_active_users/7" class="icon icon-download md-tip" title="" data-original-title="导出活跃用户"></a>
	                                    <a onclick="AWS.dialog('confirm', {'message': '确认删除这个用户群?'}, function(){window.location = G_BASE_URL + '/admin/edm/remove_task/7'}); return false;" class="icon icon-trash md-tip" title="" data-original-title="删除"></a>
	                                </td>
	                            </tr>
	                                                        <tr>
	                                <td>你好是这是测试邮件</td>
	                                <td>1</td>
	                                <td>1</td>
	                                <td>1</td>
	                                <td>2015-10-13 13:30</td>
	                                <td>
	                                    <a href="http://douchat.cc/?/account/edm/mail/6" target="_blank" class="icon
	                                     icon-inbox md-tip" title="" data-original-title="邮件内容"></a>
	                                    <a href="http://douchat.cc/?/admin/edm/export_active_users/6" class="icon icon-download md-tip" title="" data-original-title="导出活跃用户"></a>
	                                    <a onclick="AWS.dialog('confirm', {'message': '确认删除这个用户群?'}, function(){window.location = G_BASE_URL + '/admin/edm/remove_task/6'}); return false;" class="icon icon-trash md-tip" title="" data-original-title="删除"></a>
	                                </td>
	                            </tr>
	                                                        <tr>
	                                <td>艾豆乐园插件使用情况调研</td>
	                                <td>256</td>
	                                <td>256</td>
	                                <td>1</td>
	                                <td>2015-05-04 23:00</td>
	                                <td>
	                                    <a href="http://douchat.cc/?/account/edm/mail/5" target="_blank" class="icon
	                                     icon-inbox md-tip" title="" data-original-title="邮件内容"></a>
	                                    <a href="http://douchat.cc/?/admin/edm/export_active_users/5" class="icon icon-download md-tip" title="" data-original-title="导出活跃用户"></a>
	                                    <a onclick="AWS.dialog('confirm', {'message': '确认删除这个用户群?'}, function(){window.location = G_BASE_URL + '/admin/edm/remove_task/5'}); return false;" class="icon icon-trash md-tip" title="" data-original-title="删除"></a>
	                                </td>
	                            </tr>
	                                                        <tr>
	                                <td>艾豆乐园系统通知_20150426</td>
	                                <td>181</td>
	                                <td>181</td>
	                                <td>4</td>
	                                <td>2015-04-26 21:24</td>
	                                <td>
	                                    <a href="http://douchat.cc/?/account/edm/mail/4" target="_blank" class="icon
	                                     icon-inbox md-tip" title="" data-original-title="邮件内容"></a>
	                                    <a href="http://douchat.cc/?/admin/edm/export_active_users/4" class="icon icon-download md-tip" title="" data-original-title="导出活跃用户"></a>
	                                    <a onclick="AWS.dialog('confirm', {'message': '确认删除这个用户群?'}, function(){window.location = G_BASE_URL + '/admin/edm/remove_task/4'}); return false;" class="icon icon-trash md-tip" title="" data-original-title="删除"></a>
	                                </td>
	                            </tr>
	                                                        <tr>
	                                <td>测试的邮件</td>
	                                <td>2</td>
	                                <td>2</td>
	                                <td>2</td>
	                                <td>2015-04-16 13:52</td>
	                                <td>
	                                    <a href="http://douchat.cc/?/account/edm/mail/3" target="_blank" class="icon
	                                     icon-inbox md-tip" title="" data-original-title="邮件内容"></a>
	                                    <a href="http://douchat.cc/?/admin/edm/export_active_users/3" class="icon icon-download md-tip" title="" data-original-title="导出活跃用户"></a>
	                                    <a onclick="AWS.dialog('confirm', {'message': '确认删除这个用户群?'}, function(){window.location = G_BASE_URL + '/admin/edm/remove_task/3'}); return false;" class="icon icon-trash md-tip" title="" data-original-title="删除"></a>
	                                </td>
	                            </tr>
	                                                    </tbody>
	                    </table>
	                                </div>
	                <div class="mod-table-foot">
	                    <span class="pull-right mod-page"></span>
	                </div>
	            </div>

	            <div class="tab-pane active" id="add">
	                <form method="post" action="http://douchat.cc/?/admin/ajax/edm_add_task/" onsubmit="return false;" id="task_form" class="form-horizontal" role="form">

	                    <div class="form-group">
	                        <label class="col-sm-2 col-xs-3 control-label">任务标题:</label>

	                        <div class="col-sm-5 col-xs-8">
	                            <input class="form-control" type="text" name="title">
	                        </div>
	                    </div>

	                    <div class="form-group">
	                        <label class="col-sm-2 col-xs-3 control-label">邮件标题:</label>

	                        <div class="col-sm-5 col-xs-8">
	                            <input class="form-control" type="text" name="subject">
	                        </div>
	                    </div>

	                    <div class="form-group">
	                        <label class="col-sm-2 col-xs-3 control-label">发件人名称:</label>

	                        <div class="col-sm-5 col-xs-8">
	                            <input class="form-control" type="text" name="from_name" value="豆信-微信开发如此简单_艾豆社区_weiphp_微信开发_微信开发框架">
	                        </div>
	                    </div>

	                    <div class="form-group">
	                        <label class="col-sm-2 col-xs-3 control-label">用户群组:</label>

	                        <div class="col-sm-5 col-xs-8">
	                            <select name="usergroup_id" class="form-control">
	                                <option value="0"> - 请选择 - </option>
	                                                                <option value="6">测试群</option>
	                                                                <option value="5">艾逗笔</option>
	                                                                <option value="4">超超超级管理员</option>
	                                                                <option value="3">注册会员</option>
	                                                                <option value="2">全部用户</option>
	                                                                <option value="1">超级管理员</option>
	                                                            </select>
	                        </div>
	                    </div>

	                    <div class="form-group">
	                        <label class="col-sm-2 col-xs-3 control-label">邮件内容:</label>

	                        <div class="col-sm-5 col-xs-8">
	                            <textarea class="form-control textarea" name="message" rows="15"></textarea>

	                            <span class="help-block">请直接粘帖 HTML 代码, 退订链接使用 [#UNSUBSCRIPTION_LINK#] 占位符</span>
	                        </div>
	                    </div>

	                    <div class="form-group">
	                        <div class="col-sm-offset-2 col-sm-5 col-xs-8">
	                            <button type="button" class="btn btn-primary postBtn">创建</button>
	                        </div>
	                    </div>
	                </form>
	            </div>
	        </div>
	    </div>
</div>
	
</block>